package com.moleq.enums;

public enum PaymentType {

	CASH("Cash"), 
	CHECK("Check"), 
	CREDIT_CARD("Credit Card"), 
	DEBIT_CARD("Debit Card"), 
	EBT_CASH("EBT Cash"), 
	FOOD_STAMP("Food Stamp"), 
	GIFT_CARD("Gift Card"), 
	GIFT_CERTIFICATE("Gift Certificate"), 
	STORE_CREDIT("Store Credit"), 
	VOICE_AUTH("Voice Auth"), 
	VOUCHER("Voucher"), 
	WIC("Wic"),
	CVV("Cvv");

	CharSequence mText; // Display Text

	PaymentType(CharSequence text) {
		mText = text;
	}

	public CharSequence getText() {
		return mText;
	}
	
	 public static PaymentType getPaymentType(String type) {  
	        for (PaymentType p : PaymentType.values()) {  
	            if (p.getText().equals(type)) {  
	                return p;  
	            }  
	        }  
	        return null;  
	    } 
}
